<?php

use Phinx\Migration\AbstractMigration;

/**
 * 添加标签区域字段
 * Class AddFieldCorrespondInTag
 */
class AddFieldCorrespondInTag extends AbstractMigration
{
    public function up()
    {
        $this->table("tag")
            ->addColumn('correspond', 'string', ['default' => '', 'limit' => 128, 'comment' => '标签使用区域'])
            ->save();
    }

    public function down()
    {
        $this->table("tag")->removeColumn("correspond")->save();
    }
}
